package cn.hiapi.shopkeeper.jpa.order;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.order.CommentReplay;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2023/1/31 0:44
 */
public interface CommentReplayJpa extends BasicRepository<CommentReplay,Long> {



    @Modifying
    @Query("update  CommentReplay e set e.read=1,e.updated=?2 where e.uid=?1 ")
    Integer readAll(long uid,long updated);
}
